﻿using System;
using System.ComponentModel.DataAnnotations;
using static AD.Pms.Api.Entities.Enums.CommonEnum;
using System.ComponentModel.DataAnnotations.Schema;

namespace AD.Pms.Api.Entities
{
    /// <summary>
    /// 图标实体类
    /// </summary>
    public class Icon
    {
        /// <summary>
        /// 
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }

        /// <summary>
        /// 图标名称
        /// </summary>
        [Required]
        public string Code { get; set; }

        /// <summary>
        /// 图标的大小，单位是 px
        /// </summary>
        public string Size { get; set; }

        /// <summary>
        /// 图标颜色
        /// </summary>
        public string Color { get; set; }

        /// <summary>
        /// 自定义图标
        /// </summary>
        public string Custom { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public Status Status { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public IsDelete IsDelete { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public Guid CreatedByUserGuid { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string CreatedByUserName { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public Guid? ModifiedByUserGuid { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string UpdateBy { get; set; }
    }
}
